﻿package entity;

/** 
 * 产品表
 */
public class product
{
  /**
   * 产品编号
   */
  protected int pid;
  /**
   * 产品名称
   */
  protected String pname;
  /**
   * 型号
   */
  protected String pmodel;
  /**
   * 产品等级
   */
  protected String prank;
  /**
   * 产品单位
   */
  protected String punit;
  /**
   * 单价
   */
  protected double pprice;
  /**
   * 仓库
   */
  protected String phouse;
  /**
   * 货位
   */
  protected String location;
  /**
   * 件数
   */
  protected int pstock;

  public product()
  {
  }

  public product(int pid, String pname, String pmodel, String prank, String punit, double pprice, String phouse,
		String location, int pstock) {
	super();
	this.pid = pid;
	this.pname = pname;
	this.pmodel = pmodel;
	this.prank = prank;
	this.punit = punit;
	this.pprice = pprice;
	this.phouse = phouse;
	this.location = location;
	this.pstock = pstock;
  }



/**
   * 获取产品编号
   */
  public int getPid()
  {
    return pid;
  }
  /**
   * 设置产品编号
   */
  public void setPid(int value)
  {
    this.pid = value;
  }
  /**
   * 获取产品名称
   */
  public String getPname()
  {
    return pname;
  }
  /**
   * 设置产品名称
   */
  public void setPname(String value)
  {
    this.pname = value;
  }
  /**
   * 获取型号
   */
  public String getPmodel()
  {
    return pmodel;
  }
  /**
   * 设置型号
   */
  public void setPmodel(String value)
  {
    this.pmodel = value;
  }
  /**
   * 获取产品等级
   */
  public String getPrank()
  {
    return prank;
  }
  /**
   * 设置产品等级
   */
  public void setPrank(String value)
  {
    this.prank = value;
  }
  /**
   * 获取产品单位
   */
  public String getPunit()
  {
    return punit;
  }
  /**
   * 设置产品单位
   */
  public void setPunit(String value)
  {
    this.punit = value;
  }
  /**
   * 获取单价
   */
  public double getPprice()
  {
    return pprice;
  }
  /**
   * 设置单价
   */
  public void setPprice(double value)
  {
    this.pprice = value;
  }
  /**
   * 获取仓库
   */
  public String getPhouse()
  {
    return phouse;
  }
  /**
   * 设置仓库
   */
  public void setPhouse(String value)
  {
    this.phouse = value;
  }
  /**
   * 获取货位
   */
  public String getLocation()
  {
    return location;
  }
  /**
   * 设置货位
   */
  public void setLocation(String value)
  {
    this.location = value;
  }
  /**
   * 获取件数
   */
  public int getPstock()
  {
    return pstock;
  }
  /**
   * 设置件数
   */
  public void setPstock(int value)
  {
    this.pstock = value;
  }

	@Override
	public String toString() {
		return "product [pid=" + pid + ", pname=" + pname + ", pmodel=" + pmodel + ", prank=" + prank + ", punit=" + punit
				+ ", pprice=" + pprice + ", phouse=" + phouse + ", location=" + location + ", pstock=" + pstock + "]";
	}
  

}

